<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, maximum-scale=1,minimum-scale=1, user-scalable=no"
    />
    <title>获得元素节点的5中方法</title>
    <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
  </head>
  <body>
    <div class="box">
      <ul>
        <li class="li1"><a href="https://www.qq.com">腾讯</a></li>
        <li id="li2"><a href="https://www.sina.com.cn">新浪</a></li>
        <li class="list"><a href="https://www.sohu.com">搜狐</a></li>
        <li class="list"><a href="https://www.jd.com">京东</a></li>
        <li id="li3"><a href="https://www.baidu.com">百度</a></li>
      </ul>
      <hr />
      <ul>
        <li id="li2"><a href="https://www.sina.com.cn">新浪</a></li>
        <li class="list"><a href="https://www.sohu.com">搜狐</a></li>
        <li class="li1"><a href="https://www.qq.com">腾讯</a></li>
        <li class="list"><a href="https://www.jd.com">京东</a></li>
        <li id="li3"><a href="https://www.baidu.com">百度</a></li>
      </ul>
    </div>
    <script src="./js/demo.js"></script>
  </body>
</html>
